﻿<phone:PhoneApplicationPage 
    x:Class="PaperCut.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="696"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <!--<Path  Stroke="Lime"   Fill="#FFD60000"
     StrokeThickness="3" Data="M112,444C114,393 117,342 132,290C154,239 205,227 364,200C335,371 319,435 303,487" ></Path>-->

            <Path x:Name="linePath" Stroke="Red"   Fill="#FFD60000"
     StrokeThickness="3" >
                <Path.Data>

                    <PathGeometry x:Name="lg">

                        <PathGeometry.Figures>

                            <PathFigureCollection>
                                <PathFigure StartPoint="0,0" x:Name="lineFigure">
                                   
                                </PathFigure>
                            </PathFigureCollection>
                        </PathGeometry.Figures>
                    </PathGeometry>
                </Path.Data>
            </Path>
            <Path x:Name="CutLine" Stroke="Lime"   Fill="#FFD60000"
     StrokeThickness="3" >
                <Path.Data>

                    <PathGeometry x:Name="pg">

                        <PathGeometry.Figures>

                            <PathFigureCollection>
                                <!--<PathFigure StartPoint="0,0" IsFilled="False">
                                    <PathFigure.Segments>
                                        
                                        <LineSegment Point="100,100"/>
                                        <LineSegment Point="200,100"/>
                                        <LineSegment Point="250,50"/>
                                        <LineSegment Point="300,0"/>
                                        <LineSegment Point="400,50"/>
                                        <LineSegment Point="350,200"/>
                                    </PathFigure.Segments>
                                </PathFigure>-->
                                    <PathFigure StartPoint="0,0" x:Name="pathFigure">

                                    <PathFigure.Segments>

                                        <PathSegmentCollection>

                                            <!--<BezierSegment Point1="100,100" Point2="200,100" Point3="250,50"/>-->
                                            <!--<BezierSegment Point1="300,0" Point2="400,50"  Point3="350,200"/>-->
                                                <!--<BezierSegment Point1="100,100" Point2="200,100" Point3="300,0">

                                            </BezierSegment>
                                            <BezierSegment Point1="300,100" Point2="400,50" Point3="350,200"/>-->
                                            <!--<PolyBezierSegment  x:Name="pbs">
                                                <PolyBezierSegment.Points>
                                                    <Point X="50" Y="50"/>
                                                    <Point X="80" Y="50"/>
                                                    <Point X="180" Y="50"/>
                                                    <Point X="200" Y="300"/>
                                                    <Point X="100" Y="50"/>
                                                </PolyBezierSegment.Points>
                                            </PolyBezierSegment>-->

                                        </PathSegmentCollection>

                                    </PathFigure.Segments>

                                </PathFigure>

                            </PathFigureCollection>

                        </PathGeometry.Figures>

                    </PathGeometry>

                </Path.Data>
            </Path>
        </Grid>
    </Grid>

    <!--Sample code showing usage of ApplicationBar-->
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton  IconUri="/Images/appbar_button1.png" Text="mode" Click="ApplicationBarIconButton_Click_1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="clear" Click="ApplicationBarIconButton_Click"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="poly" Click="ApplicationBarIconButton_Click_2"/>

        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

</phone:PhoneApplicationPage>